CFLAGS=-Wall -Wextra -pedantic -ansi -Wno-unused-parameter

all: task1 task2 task3

task1: server1 client1

task2: server2 client2

task3: server3 client3

server1: server1.c
	gcc $(CFLAGS) -o server1 server1.c

client1: client1.c
	gcc $(CFLAGS) -o client1 client1.c

server2: server2.c
	gcc $(CFLAGS) -o server2 server2.c

client2: client2.c
	gcc $(CFLAGS) -o client2 client2.c

server3: server3.c
	gcc $(CFLAGS) -o server3 server3.c

client3: client3.c
	gcc $(CFLAGS) -o client3 client3.c

clean: FORCE
	rm -f client*[0-9] server*[0-9]

FORCE:
